package com.s63.ssm.singleton;

/**
 * 饿汉单例
 */
public class Singleton2 {
    private static Singleton2 instance = new Singleton2();

    private Singleton2() {
        System.out.println("Singleton2实例被创建");
    }

    public static Singleton2 getInstance() {
        return instance;
    }
}
